YARN-9063. ATS 1.5 fails to start if RollingLevelDb files are corrupt…#3728
YARN-9063. ATS 1.5 fails to start if RollingLevelDb files are corrupt…#3728aajisaka merged 6 commits intoapache:trunkfrom
Conversation
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
aajisaka
left a comment
There was a problem hiding this comment.
Thank you @ashutoshcipher for your PR.
There are 3 duplicate code when opening levelDB files. Can we create a helper method in LeveldbUtils and reuse it? I think we can also make change in LeveldbTimelineStore to use the helper method.
We can update the existing unit test to verify the behavior of the helper method.
|
|
||
| package org.apache.hadoop.yarn.server.timeline; | ||
|
|
||
| import org.apache.commons.io.FileUtils; |
There was a problem hiding this comment.
Would you move the import between
import org.apache.commons.collections.map.LRUMap;
and
import org.apache.commons.lang3.StringUtils;
?
I have created a separate common method |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
...istoryservice/src/main/java/org/apache/hadoop/yarn/server/timeline/LeveldbTimelineStore.java
Show resolved
Hide resolved
...ervice/src/main/java/org/apache/hadoop/yarn/server/timeline/RollingLevelDBTimelineStore.java
Outdated
Show resolved
Hide resolved
|
🎊 +1 overall
This message was automatically generated. |
...onhistoryservice/src/main/java/org/apache/hadoop/yarn/server/timeline/util/LeveldbUtils.java
Show resolved
Hide resolved
|
@aajisaka - Thanks a lot for your comments and for reviewing the PR |
|
🎊 +1 overall
This message was automatically generated. |
|
Merged. Thank you @ashutoshcipher for your contribution! |
… or missing (#3728) Signed-off-by: Akira Ajisaka <aajisaka@apache.org> (cherry picked from commit 5a950b8) Conflicts: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice/src/test/java/org/apache/hadoop/yarn/server/timeline/TestRollingLevelDBTimelineStore.java
… or missing (apache#3728) Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
… or missing (apache#3728) Signed-off-by: Akira Ajisaka <aajisaka@apache.org> (cherry picked from commit 5a950b8)
Description of PR
Jira: https://issues.apache.org/jira/browse/YARN-9063
ATS 1.5 fails to start if RollingLevelDb files are corrupt or missing
How was this patch tested?
Wrote a unit test case to check and manually tested it.